package com.zhx.learn.simplespring.controller.frontend;

import com.zhx.learn.simplespring.entity.dto.MainPageInfoDTO;
import com.zhx.learn.simplespring.entity.dto.Result;
import com.zhx.learn.simplespring.service.combine.HeadLineShopCategoryCombineService;
import lombok.Getter;
import org.simple.framework.core.annotation.Controller;
import org.simple.framework.core.annotation.Service;
import org.simple.framework.core.inject.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zhanghaixuan
 * @date 2020-03-03 11:22
 */
@Getter
@Controller
public class MainPageController {
    @Autowired
    private HeadLineShopCategoryCombineService headLineShopCategoryCombineService;
    public Result<MainPageInfoDTO> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp){
        return headLineShopCategoryCombineService.getMainPageInfo();
    }
}
